<?php

/**
 * @author shuang
 * @date 2016-10-28 9:47:27
 */
use yii\helpers\Url;
use common\components\MTools;
use common\widgets\MYActiveForm;

echo $this->render("/layouts/prompt", array("labels" => $labels));
/* --表单域-start- */
MYActiveForm::begin([
    "action" => Url::toRoute($action),
    "model" => $model,
    "fields" => [
        "topcount" => [ "type" => "text"],
        "reflash_price" => [ "type" => "text"],
        "upgrade_amount" => [ "type" => "text"],
        "credit_amount" => [ "type" => "text"],
        "single_task_votes" => [ "type" => "text"],
        "more_meet_limit" => [ "type" => "text"],
        "sys_invite_code" => [
            "type" => "text",
            "hints" => "设置之后不再允许更改，默认Y00000",
            "options" => ["value" => "Y00000", "disabled" => MTools::getYiiParams("sys_invite_code") ? "disabled" : null]
        ],
        "merchants_url" => [ "type" => "text"],
        "operate_task_url" => [ "type" => "text"],
        "rebate_drawal" => ["type" => "text"],
        "rebate_amount" => ["type" => "text"]
    ]
]);
MYActiveForm::end();
/* --表单域-end- */